export const tableItem = [
  {
    prop: 'projectId',
    label: 'ID',
    hide: true,
  },
  {
    prop: 'projectNo',
    label: '项目编号',
  },
  {
    prop: 'name',
    label: '项目名称',
  },
  {
    prop: 'customerName',
    label: '客户',
  },
  {
    prop: 'customerPhone',
    label: '客户电话',
  },
  {
    prop: 'marketerName',
    label: '销售',
  },
  {
    prop: 'projectStatus',
    label: '项目状态',
    slotName: 'projectStatusSlot',
  },
  {
    prop: 'createTime',
    label: '创建时间',
  },
  {
    prop: 'todo',
    label: '操作',
    width: '200',
    fixed: !window.isSmallScreen ? 'right' : false,
    slotName: 'todo',
    showOverflowTooltip: false,
  },
]
export default () => {
  return {
    tableItem,
    elTableConfig: {
      tooltipOptions: {
        popperClass: 'lmw_popper',
        effect: 'light',
      },
      rowKey: 'projectId',
    },
    showIndex: false,
    showChoose: true,
    pagination: true,
    // border: false,
  }
}
